home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / textutl3.lha / textutils-1.3 / src / Makefile.in < prev    next >
Makefile  |  1992-06-29  |  4KB  |  136 lines

  1. # Makefile for GNU textutils programs.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = @srcdir@/src
  22. @VPATH@
  23.  
  24. SOURCES = cat.c cmp.c comm.c csplit.c cut.c \
  25. expand.c fold.c head.c join.c nl.c \
  26. paste.c pr.c sort.c split.c sum.c tac.c \
  27. tail.c tr.c unexpand.c uniq.c wc.c version.c
  28.  
  29. DISTFILES = Makefile.in system.h $(SOURCES)
  30.  
  31. PROGS = cat cmp comm csplit cut expand fold head join nl \
  32. paste pr sort split sum tac tail tr unexpand uniq wc
  33.  
  34. all: $(PROGS) $(LIBPROGS)
  35. .PHONY: all
  36.  
  37. install: all
  38.     for f in $(PROGS); do $(INSTALL) $$f $(bindir)/$(binprefix)$$f; done
  39. .PHONY: install
  40.  
  41. tags: $(SOURCES)
  42.     ctags $(SOURCES)
  43.  
  44. TAGS: $(SOURCES)
  45.     etags $(SOURCES)
  46.  
  47. mostlyclean:
  48.     rm -f $(PROGS) $(LIBPROGS) *.o core
  49. .PHONY: mostlyclean
  50.  
  51. clean: mostlyclean
  52.     rm -f tags TAGS Makefile
  53. .PHONY: clean
  54.  
  55. realclean: clean
  56. .PHONY: realclean
  57.  
  58. dist:
  59.     ln $(DISTFILES) ../`cat ../.fname`/src
  60. .PHONY: dist
  61.  
  62. # Linking rules.
  63.  
  64. $(PROGS): ../lib/libtu.a version.o
  65.  
  66. cat: cat.o
  67.     $(CC) $(LDFLAGS) -o $@ cat.o ../lib/libtu.a version.o $(LIBS)
  68.  
  69. cmp: cmp.o
  70.     $(CC) $(LDFLAGS) -o $@ cmp.o ../lib/libtu.a version.o $(LIBS)
  71.  
  72. comm: comm.o
  73.     $(CC) $(LDFLAGS) -o $@ comm.o ../lib/libtu.a version.o $(LIBS)
  74.  
  75. csplit: csplit.o
  76.     $(CC) $(LDFLAGS) -o $@ csplit.o ../lib/libtu.a version.o $(LIBS)
  77.  
  78. cut: cut.o
  79.     $(CC) $(LDFLAGS) -o $@ cut.o ../lib/libtu.a version.o $(LIBS)
  80.  
  81. expand: expand.o
  82.     $(CC) $(LDFLAGS) -o $@ expand.o ../lib/libtu.a version.o $(LIBS)
  83.  
  84. fold: fold.o
  85.     $(CC) $(LDFLAGS) -o $@ fold.o ../lib/libtu.a version.o $(LIBS)
  86.  
  87. head: head.o
  88.     $(CC) $(LDFLAGS) -o $@ head.o ../lib/libtu.a version.o $(LIBS)
  89.  
  90. join: join.o
  91.     $(CC) $(LDFLAGS) -o $@ join.o ../lib/libtu.a version.o $(LIBS)
  92.  
  93. nl: nl.o
  94.     $(CC) $(LDFLAGS) -o $@ nl.o ../lib/libtu.a version.o $(LIBS)
  95.  
  96. paste: paste.o
  97.     $(CC) $(LDFLAGS) -o $@ paste.o ../lib/libtu.a version.o $(LIBS)
  98.  
  99. pr: pr.o
  100.     $(CC) $(LDFLAGS) -o $@ pr.o ../lib/libtu.a version.o $(LIBS)
  101.  
  102. sort: sort.o
  103.     $(CC) $(LDFLAGS) -o $@ sort.o ../lib/libtu.a version.o $(LIBS)
  104.  
  105. split: split.o
  106.     $(CC) $(LDFLAGS) -o $@ split.o ../lib/libtu.a version.o $(LIBS)
  107.  
  108. sum: sum.o
  109.     $(CC) $(LDFLAGS) -o $@ sum.o ../lib/libtu.a version.o $(LIBS)
  110.  
  111. tac: tac.o
  112.     $(CC) $(LDFLAGS) -o $@ tac.o ../lib/libtu.a version.o $(LIBS)
  113.  
  114. tail: tail.o
  115.     $(CC) $(LDFLAGS) -o $@ tail.o ../lib/libtu.a version.o $(LIBS)
  116.  
  117. tr: tr.o
  118.     $(CC) $(LDFLAGS) -o $@ tr.o ../lib/libtu.a version.o $(LIBS)
  119.  
  120. unexpand: unexpand.o
  121.     $(CC) $(LDFLAGS) -o $@ unexpand.o ../lib/libtu.a version.o $(LIBS)
  122.  
  123. uniq: uniq.o
  124.     $(CC) $(LDFLAGS) -o $@ uniq.o ../lib/libtu.a version.o $(LIBS)
  125.  
  126. wc: wc.o
  127.     $(CC) $(LDFLAGS) -o $@ wc.o ../lib/libtu.a version.o $(LIBS)
  128.  
  129. # Compilation rules.
  130.  
  131. nl.o tac.o: ../lib/regex.h
  132. comm.o nl.o uniq.o: ../lib/linebuffer.h
  133. cat.o cmp.o comm.o csplit.o cut.o expand.o fold.o head.o: system.h
  134. join.o nl.o paste.o pr.o sort.o split.o sum.o tac.o: system.h
  135. tail.o tr.o unexpand.o uniq.o wc.o: system.h
  136.